﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DailyRssDownload.Lib;

namespace DailyRssDownload.UI {
	public partial class FeedSettings : BaseForm {
		public Feed Feed { get; set; }
		
		public FeedSettings(Feed objFeed) {
			Feed = objFeed;
			InitializeComponent();

			rssFeedBindingSource.DataSource = Feed;
			summarySourceBindingSource.DataSource = SummarySource.GetAllSummarySources();
			contentSourceBindingSource.DataSource = ContentSource.GetAllContentSources();
		}

		private void cmdOk_Click(object sender, EventArgs e) {
			this.Close();
			this.Dispose();
		}

		private void cboContentSource_SelectedIndexChanged(object sender, EventArgs e) {
		}

		private void cboContentSource_SelectedValueChanged(object sender, EventArgs e) {
		}

		private void contentSourceBindingSource_CurrentChanged(object sender, EventArgs e) {
		}

		private void contentSourceBindingSource_CurrentItemChanged(object sender, EventArgs e) {
		}

		private void cboContentSource_SelectedIndexChanged_1(object sender, EventArgs e) {
			//if (cboContentSource.SelectedItem is ContentSource.ContentSourcesEnum) {
			//    bool blnContentSourceIsDownload = (ContentSource.ContentSourcesEnum)cboContentSource.SelectedItem == ContentSource.ContentSourcesEnum.Download;
			//    txtContentEndMarker.Enabled = blnContentSourceIsDownload;
			//    txtContentStartMarker.Enabled = blnContentSourceIsDownload;
			//}
		}

	}
}
